package com.ttdev.mmms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * 会员实体类 王旭国/李硕
 */
@Data
@AllArgsConstructor
@ToString
@TableName("member_info")
public class MemberInfo {
    //信息id
    @TableId(value = "card_id",type = IdType.AUTO)
    private Integer cardId;
    //店铺id
    @TableId(value = "store_id")
    private Integer storeId;
    //电话
    @TableId(value = "iphone")
    private String iphone;
    //姓名
    @TableId(value = "name")
    private String name;
    //密码
    @TableId(value = "password")
    private String password;
    //生日
    @TableId(value = "birthday")
    private String birthday;
    //余额
    @TableId(value = "balance")
    private Double balance;
    //类型
    @TableId(value = "type")
    private Integer type;
    //状态
    @TableId(value = "state")
    private String state;
    // 积分
    @TableField(value = "integral")
    private Integer integral;
    //开卡时间
    @TableField(value = "time")
    private Timestamp time;

}